package com.niit.ai.dl.dltrain.service;

import com.niit.ai.dl.dltrain.dao.ModelTypeDao;
import com.niit.ai.dl.dltrain.web.model.ModelTypeListRsp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ModelTypeService {
    @Autowired
    private ModelTypeDao modelTypeDao;

    public ModelTypeListRsp queryList() {
        ModelTypeListRsp rsp = new ModelTypeListRsp();
        rsp.setRecords(modelTypeDao.queryList());
        return rsp;
    }
}
